package com.ruowei.modules.foodOrder.web.dto;

import com.ruowei.modules.foodOrder.domain.enumeration.OrderStatus;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.time.Instant;
import java.util.List;

@Data
public class OrderWebDTO {

    @ApiModelProperty(value = "订单编码")
    private String orderCode;

    @ApiModelProperty(value = "生成时间")
    private Instant createTime;

    @ApiModelProperty(value = "总金额")
    private BigDecimal totalAmount;

    @ApiModelProperty(value = "实付金额")
    private BigDecimal payAmount;

    @ApiModelProperty(value = "收货人姓名")
    private String receiverName;

    @ApiModelProperty(value = "收货人电话")
    private String receiverPhone;

    @ApiModelProperty(value = "收货人地址")
    private String receiverAddress;

    @ApiModelProperty(value = "订单备注")
    private String remark;

    @ApiModelProperty(value = "待支付、待接单、商家已接单、配送员已接单、已送达、退款中、退款同意、已退款、退款失败、退款关闭、已取消")
    private OrderStatus status;

    @ApiModelProperty(value = "配送员编码")
    private String courierCode;

    @ApiModelProperty(value = "配送员姓名")
    private String courierName;

    @ApiModelProperty(value = "配送员电话")
    private String courierPhone;

    @ApiModelProperty(value = "退货原因")
    private String reason;

    @ApiModelProperty(value = "订单明细列表")
    private List<OrderItemWebDTO> items;
}
